
assert(type(bounty) == "table")

minetest.register_node("bounty:reward", {
		description = "<player> death proof",
		inventory_image = "bounty_reward.png",
		wield_image = "bounty_reward.png",
		stack_max = 1,
		sounds = default.node_sound_metal_defaults(),
		groups = {cracky=3, oddly_breakable_by_hand=3},
		paramtype = "light",
		sunlight_propagates = true,
		is_ground_content = false,
		walkable = false,
		drawtype = "signlike",
		tiles = {"bounty_reward.png", "bounty_reward.png", "bounty_reward.png",
			"bounty_reward.png", "bounty_reward.png", "bounty_reward.png"},
		paramtype2 = "wallmounted",
		selection_box = {
			type = "wallmounted"
		},
		after_place_node = function(...)
			return bounty.reward.do_after_place_node(...)
		end,
		preserve_metadata = function(...)
			return bounty.reward.do_preserve_metadata(...)
		end,
		on_use = function(...)
			return bounty.reward.do_use(...)
		end,
		on_rightclick = function(...)
			return bounty.reward.do_rightclick(...)
		end
		})


minetest.register_craftitem("bounty:mark", {
		description = "Bounty mark.",
		inventory_image = "bounty_mark.png",
		stack_max = 64,
		on_use = function(...)
				return bounty.mark_use(...)
			end
		})

minetest.register_craft({
		output = "bounty:mark",
		recipe = {
			{"", "default:gold_ingot", ""},
			{"default:gold_ingot", "", "default:gold_ingot"},
			{"", "default:gold_ingot", ""}
		}})

